/*
 * @Author: bankeyu-dell 573569790@qq.com
 * @Date: 2022-10-08 15:53:59
 * @LastEditors: bankeyu-dell 573569790@qq.com
 * @LastEditTime: 2022-10-13 00:09:07
 * @FilePath: \fast-vue3\src\api\setup\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { get, post } from '/@/utils/http/axios';
enum URL {
  translatesetup = '/msvc/translatesetup', // 设置好友的通讯语言
  translatesetups = '/msvc/translatesetups', // 获取设置的列表
  setTranslateEveryDay = '/unverify/setTranslateEveryDay', // 设置翻译
}

export interface TranslatesetupData {
  customerId: number;
  endDate: string;
  levelNo: string;
  startDate: string;
  supportedLanguage: string;
}

export interface IdData {
  id: number;
}

const translatesetup = async (data: TranslatesetupData) => post<any>({ url: URL.translatesetup, data });
const translatesetups = async (data: IdData) => get<any>({ url: URL.translatesetups, data });
const setTranslateEveryDay = async () => get<any>({ url: URL.setTranslateEveryDay });
export { translatesetup, translatesetups, setTranslateEveryDay };
